<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html>
<html>
<head>
  <base href="<%=basePath%>">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>KG-员工管理系统</title>
  <link rel="stylesheet" href="layui/css/layui.css">
  <link rel="stylesheet" href="css/site.css">
<script src="layui/layui.js"></script>
</head>
<body>
<div class="layui-layout layui-layout-admin">  
 <div class="layui-header">
    <div class="layui-logo layui-hide-xs layui-bg-black">KG-员工管理系统</div>
    <!-- 头部区域（可配合layui 已有的水平导航） -->
   
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item layui-hide layui-show-md-inline-block">
        <a href="javascript:;">
        
          <c:if test="${sessionScope.user.head != null}">
          <img src="upload/${sessionScope.user.head }" class="layui-nav-img">
          </c:if>
           <c:if test="${sessionScope.user.head == null}">
           <img  src="img/6.gif" class="layui-nav-img">
          </c:if>
         
          ${sessionScope.user.relname }
        </a>
        <dl class="layui-nav-child">
          <dd><a href="user/edit">个人中心</a></dd>
          <dd><a href="user/loginout">退出</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
        <a href="javascript:;">
          <i class="layui-icon layui-icon-more-vertical"></i>
        </a>
      </li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">部门管理</a>
          <dl class="layui-nav-child">
            <dd><a href="dept/list">部门列表</a></dd>
            <dd><a href="dept/add">添加部门</a></dd>
          </dl>
        </li>
        
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">员工管理</a>
          <dl class="layui-nav-child">
            <dd><a href="staff/list">员工列表</a></dd>
            <dd><a href="staff/add">添加员工</a></dd>
          </dl>
        </li>
        
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">项目管理</a>
          <dl class="layui-nav-child">
            <dd><a href="project/list">项目列表</a></dd>
            <dd><a href="project/add">添加项目</a></dd>
          </dl>
        </li>
        
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">考勤管理</a>
          <dl class="layui-nav-child">
            <dd><a href="attd/list">考勤列表</a></dd>
            <dd><a href="attd/add">添加考勤</a></dd>
          </dl>
        </li>
        
      </ul>
    </div>
  </div>
 
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 15px;">  

